<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>详情表</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script type="text/javascript" src="./public/js/jquery-3.1.1.min.js"></script>
    </head>
    <body>
        <a href="index.php?m=indexx&c=user&a=fatie">发帖</a><br/>
        <table border="1">
            <tr>
                <td>编号</td>
                <td>姓名</td>
                <td>内容</td>
                <td>添加时间</td>
                <td>点击量</td>
                <td>详情</td>
                
            </tr>
            {foreach from=$list2 key=$k item=$v}
            <tr>
                <td id="id">{$v.id}</td>
                <td>{$v.name}</td>
                <td>{$v.content}</td>
                <td>{$v.add_time}</td>
                <td>{$v.click}</td>
                <td><a href="content.html" id="xq">详情</a></td>
            </tr>
            {/foreach}
            </table>
            <a href="index.php?m=index&c=user&a=xq&page=1">首页</a>
            {if $page > 1}
            <a href="index.php?m=index&c=user&a=xq&page={$page-1}">上一页</a>
            {/if}
            {if $page < $pagecount}
            <a href="index.php?m=index&c=user&a=xq&page={$page+1}">下一页</a>
            {/if}
            <a href="index.php?m=index&c=user&a=xq&page={$pagecount}">尾页</a>
            <script tppe="text/script">
//                {literal}
//                $("#xq").click(function(){
//                    var id=$("#id").html();
//                    $.ajax({
//                        type:"get",
//                        url:"./index.php?c=news&a=newsdelete",
//                        data:{id:id},
//                      success:function(a){
//                 if(a==1){
//                   alert("1"); 
//                   location.reload() 
//
//                 }else{
//                    alert("0");
//                 }
//             }        
//                    })                    
//                });
//                
//        {/literal}
            </script>
    </body>
</html>
